﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using GsifWeb4.Models;

namespace GsifWeb4.Controllers
{
    public class AdminController : Controller
    {
        gsifdbEntities gsifDB = new gsifdbEntities();

        //
        // GET: /Admin/
        [Authorize]
        public ActionResult Index()
        {
            var loggedInPlayer = (from player in gsifDB.laget_gsif
                                  where player.Anvandarnamn == User.Identity.Name
                                  select player).SingleOrDefault();

            return View(loggedInPlayer);
        }

    }
}
